package soccer.view;

import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.UIManager;

public class PlayerAddedVerifyPanel extends JPanel {

	private JLabel okeyGifLabel;
	private JLabel okeyMessageLabel;
	private JButton againaddNewPlayerButton;
	private JButton  systemBackButton ;

	/**
	 * Create the panel.
	 */
	public PlayerAddedVerifyPanel() {
		setLayout(null);
		okeyGifLabel = new JLabel("");
		okeyGifLabel.setIcon(new ImageIcon("C:\\Users\\pasa\\Desktop\\okey.gif"));
		okeyGifLabel.setBounds(10, 74, 123, 104);
		add(okeyGifLabel);
		
		okeyMessageLabel = new JLabel("");
		okeyMessageLabel.setBackground(UIManager.getColor("Button.light"));
		okeyMessageLabel.setBounds(161, 128, 246, 14);
		add(okeyMessageLabel);
		
		againaddNewPlayerButton = new JButton("Add new Player");
		againaddNewPlayerButton.setBounds(333, 247, 107, 23);
		add(againaddNewPlayerButton);
		
	    systemBackButton = new JButton("Back to system");
		systemBackButton.setBounds(213, 247, 105, 23);
		add(systemBackButton);

	}

	public JLabel getOkeyGifLabel() {
		return okeyGifLabel;
	}

	public void setOkeyGifLabel(JLabel okeyGifLabel) {
		this.okeyGifLabel = okeyGifLabel;
	}

	public JLabel getOkeyMessageLabel() {
		return okeyMessageLabel;
	}

	public void setOkeyMessageLabel(JLabel okeyMessageLabel) {
		this.okeyMessageLabel = okeyMessageLabel;
	}

	public JButton getAgainAddNewTeamButton() {
		return againaddNewPlayerButton;
	}

	public void setAgainAddNewTeamButton(JButton againaddNewPlayerButton) {
	   this.againaddNewPlayerButton = againaddNewPlayerButton;
	}

	public JButton getsystemBackButton() {
		return systemBackButton;
	}

	public void setsystemBackButton(JButton systemBackButton) {
		this.systemBackButton = systemBackButton;
	}
	 public void setsystemBackButtonListener(ActionListener l) {
			systemBackButton.addActionListener(l);
		}
	public void setAgainAddNewButtonListener(ActionListener l){
			againaddNewPlayerButton.addActionListener(l);
		}
		

}
